class FatherA():
    def __init__(self, name):
        self.name = name

    def showA(self):
        print(f'FatherA类，我的名字叫：{self.name}')

    def test(self):
        print('这是A类的text方法')


class FatherB():
    def __init__(self, age):
        self.age = age

    def showB(self):
        print(f'FatherB类，我的年龄{self.age}岁')

    def test(self):
        print('这是B类的text方法')


# 多继承
class Son(FatherA, FatherB):
    def __init__(self, name, age, gender):
        FatherA.__init__(self, name)
        FatherB.__init__(self, age)
        self.gender = gender

    def show(self):
        print(f'我的名称：{self.name}，我的年龄：{self.age},性别：{self.gender}')

    def test(self):
        print('这是Son类的text方法')


if __name__ == '__main__':
    son = Son('小米', 25, '男')
    son.showA()
    son.showB()
    son.test()
    son.show()
